//
//  NetworkRetryModel.h
//  NetworkDemo
//
//  Created by 万孟超 on 2021/9/9.
//

#import <Foundation/Foundation.h>
#import "NetworkManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface NetworkRetryModel : NSObject

/// 初始化Model
/// @param req 请求Model
/// @param enginePoint 引擎标志
/// @param progress 进度回调
/// @param success 成功回调
/// @param errorBlock 失败回调
+ (instancetype)retryModelWithRequest:(NetworkBaseRequest *)req
                          enginePoint:(NSString *)enginePoint
                       isTimeoutRetry:(BOOL)isTimeout
                        progressBlock:(ProgressBlock)progress
                         successBlock:(CompletionBlock)success
                           errorBlock:(ErrorBlock)errorBlock;

/// 网络请求回调
- (void)retryNetwork;
@end

NS_ASSUME_NONNULL_END
